# # # # print(1+2)
# # # # print("1"+"2")
# # # # print([1,2]+[3,4])
# # # #
# # # # #整除和求和的应用场景
# # # # #行列 整除看行 取余看列
# # #
# # # num=10
# # # result=num+5
# # # num=result
# # # print(result)
# #
# #
# # num=10
# # print(id(num))
#
#
# """
# a=10
# b=10
# print(id(a),id(b))
# print(a is b)
# """
#
#
# '''
# a=[1]
# b=[1]
# print(a==b)
# print(id(a),id(b))
# print(a is b)
# '''
#
# '''
# num=10
# #num>5 && num<20
# print(5<num<20)
# '''
#
#
# '''
# content=input("请输入内容")
# result=eval(content)#加了这个 把输入内容当做代码  不加都当做字符串
# print(type(result))
# print(result)
# '''
#
# name='sz'
# age=18
# print("我的名字是%s,我的年龄是%d" %(name,age))
# print("我的名字是{0},我的年龄是{1}".format(name,age))
# print(f'我的名字是{name},我的年龄是{age}')



'''
import sys
f=open("test.txt","w")
print("XXXXXXX",file=sys.stdout)
'''

#print("2334",end="")
#print("1","2","3",sep="-")


'''
from time import sleep

print("请输入账号",end="",flush=True)
sleep(5)
'''

'''

mathScore=59
englishScore=56
print("数学成绩%(es)d,英语成绩%(ms)d"%({"ms":mathScore,"es":englishScore}))
'''

'''
min=12
sec=28
print("%02d:%02d"%(min,sec))
'''

#输入
hight=float(input("请输入身高(m):"))
weight=float(input("请输入体重(kg):"))
age=int(input("请输入年龄:"))
gender=int(input("请输入性别(男：1 女：0):"))

#BMI
bmi=weight/(hight**2)
#体脂率
fat=1.2*bmi+0.23*age-5.4-10.8*gender

if(gender==1):
    if(15<fat<18):
        reasult="符合"
    else:
        reasult="不符合"

else:
    if (25 < fat < 28):
        reasult = "符合"
    else:
        reasult = "不符合"

# minfat=15+10*(1-gender)
# maxfat=18+10*(1-gender)
#
# reasult=minfat<fat<maxfat

print(f"体脂率是：{fat}")
print(f'你的体脂率{reasult}标准')
